package com.cyys.controller;

import com.cyys.entity.HomeImg;
import com.cyys.response.Result;
import com.cyys.service.HomeImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Administrator
 * @description HomeImgController
 * @date 2022-05-25 10:40
 */
@RestController
@RequestMapping("/home")
public class HomeImgController {


    @Autowired
    private HomeImgService homeImgService;

    @GetMapping("/home_swiper")
    public Result home_swiper(){
        List<HomeImg> HomeImg = homeImgService.getHomeImgList();
        return Result.ok().data("HomeImg",HomeImg);
    }





}
